<?php
namespace Tbf\Crypto\Password\Plan;
use Tbf\Crypto\Password\HashInterface;
use Tbf\Crypto\Password\PlanInterface;
use Tbf\Crypto\Password\VerifyInterface;
/**
 * @deprecated
 */
class BasePlan implements PlanInterface{
	protected $hash_plan;
	protected $verify_plan;
	function __construct(HashInterface $hash_plan,VerifyInterface $verify_plan){
		$this->hash_plan = $hash_plan;
		$this->verify_plan = $verify_plan;
	}
	function hash($plain){
		return $this->hash_plan->hash($plain);
	}
	function verify($plain,$hashed){
		return $this->verify_plan->verify($plain,$hashed);
	}
	function support($hashed){
		return $this->verify_plan->support($hashed);
	}
}
